package lab02.test35;

/**
 * Created by Adminitrator on 2017/11/20.
 */
public class Salesman extends Employee {
    double basesalary;
    int count;
    double commison;
    public Salesman(String name, double basesalary,int count,double commison) {
        super(name);
        this.basesalary=basesalary;
        this.count=count;
        this.commison=commison;

    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public double computeSalary() {
        return basesalary+count*commison;
    }
}
